package cn.wolfcode.service;

import cn.wolfcode.domain.Exam;
import cn.wolfcode.domain.Question;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IExamService {
    void save(Exam exam);
    void delete(Long id);
    void update(Exam exam);
    Exam get(Long id);
    List<Exam> listAll();

    List<Question> selectQuestion(Integer questionType,Integer questionAmount);
    //插入试卷标题和时间
    void insertTitleAndTime(Exam exam);

    void insertRandomQuestion(List<Question> singleQuestion,Long examId,Integer everyQuestionScore);

    Exam selectExamPaperByExamId(Long id);
}
